package sctu.edu.java.year2016.team07.nieying.day20160521.chapter5_1;

/**
 * Created by Administrator on 2016/5/21 0021.
 */

/**
 * 编写java程序，创建一维数组arr[],并将其遍历输出。
 */
public class shuchubianli {
    public static void main(String[] args){
        int i;
        int arr[]={1,2,3,4,5};
        System.out.println("一维数组的遍历是: ");
        for(i=0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }
        System.out.println();
    }
}
